# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json
imports:
  commons: ./commons.yml
service:
  auth: true
  base-path: /api/public
  endpoints:
    get:
      method: GET
      docs: Get a dataset and its items
      path: /datasets/{datasetName}
      path-parameters:
        datasetName: string
      response: commons.Dataset
    create:
      method: POST
      docs: Create a dataset
      path: /datasets
      request: CreateDatasetRequest
      response: commons.Dataset
    getRuns:
      method: GET
      docs: Get a dataset run and its items
      path: /datasets/{datasetName}/runs/{runName}
      path-parameters:
        datasetName: string
        runName: string
      response: commons.DatasetRun

types:
  CreateDatasetRequest:
    properties:
      name: string
